<template>
  <div class="AddBox">
    <el-dialog
      :visible.sync="dialogVisible"
      width="60%"
      :before-close="handleClose"
    >
      <!-- <span>这是一段信息</span> -->
      <div class="OrderHeader">
        <div class="TianImg"><img src="" alt="" /></div>
        <div class="AddText">
          <h3 class="h3">添加订单</h3>
        </div>
      </div>
      <div class="OrderMid">
        <div class="oneList">
          <span class="OrderMid-a">典礼日期:</span>
          <el-input class="OrderMid-b" placeholder="" v-model="input1" clearable>
          </el-input>
        </div>
        <div class="onePull">
          <span class="OrderMid-a">典礼时间:</span>
          <el-select v-model="value1" placeholder="">
            <el-option
              v-for="item in options1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="twoList">
          <span class="OrderMid-a">婚礼公司:</span>
          <el-input class="OrderMid-b" placeholder="" v-model="input2" clearable>
          </el-input>
        </div>
        <div class="threeList">
          <span class="OrderMid-a">联系人:</span>
          <el-input class="OrderMid-b" placeholder="" v-model="input3" clearable>
          </el-input>
        </div>
        <div class="fourList">
          <span class="OrderMid-a">联系电话:</span>
          <el-input class="OrderMid-b" placeholder="" v-model="input4" clearable>
          </el-input>
        </div>
        <div class="fiveList">
          <span class="OrderMid-a">酒店名称:</span>
          <el-input class="OrderMid-b" placeholder="" v-model="input5" clearable>
          </el-input>
        </div>
      </div>
      <div class="twoPull">
          <span class="OrderMid-a">酒店地址:</span>
          <el-select v-model="value2" placeholder="">
            <el-option
              v-for="item in options2"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="priceBtn">
          <span>价格:</span>
          <i class="priceXX">2000</i>
          <button class="authBtn">确认修改</button>
        </div>
        <div class="remarks">
          <span class="remarks-a">备注:</span>
          <textarea class="textRemarks" id="" cols="10" rows="3">备注文字,多行
          </textarea>
        </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">返 回</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >提 交</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      input1: "",
      input2: "",
      input3: "",
      input4: "",
      input5: "",
      options1: [
        {
          value: "选项1",
          label: "上午",
        },
        {
          value: "选项2",
          label: "下午",
        },
        {
          value: "选项3",
          label: "晚上",
        },
      ],
      value1: "上午",
      options2: [
        {
          value: "选项1",
          label: "北京市",
        },
        {
          value: "选项2",
          label: "外地+1000",
        },
      ],
      value2: "北京市",
    };
  },
  mounted() {
    this.$bus.$on("dialogVisible", (flag) => {
      console.log(flag);
      this.dialogVisible = flag;
    });
    console.log(this.dialogVisible);
  },
  methods: {
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then((_) => {
          done();
        })
        .catch((_) => {});
    },
  },
};
</script>

<style scoped lang="less">
.AddBox {
  .OrderHeader {
    line-height: 80px;
    width: 100%;

    .TianImg {
      float: left;
      width: 30%;
      height: 80px;
      background-color: salmon;
    }

    .AddText {
      float: left;
      width: 70%;
      .h3 {
        margin-left: 20px;
        font-size: 20px;
        font-weight: 700;
      }
    }
  }
}
.OrderMid {
  width: 100%;
}
.oneList {
  margin-top: 20px;
}
.OrderMid-a {
  width: 30%;
  float: left;
  margin-top: 10px;
}
.OrderMid-b {
  width: 70%;
  float: left;
}
.priceXX{
  margin-left: 100px;
  padding-right: 40px;
}
.authBtn{
  // display: none;
}
.remarks{
  width: 100%;
  height: 100px;
  line-height: 100px;
  text-align: center;
}
.remarks-a{
  margin-left: 0px;
}
.textRemarks{
  padding: 10px;
  margin-left: 10px;
  margin-top: 20px;
}
</style>